package com.zzzy.cont.vo.template;

import com.zzzy.common.vo.PageParam;
import com.zzzy.framework.common.annotation.RangeValuesCheck;
import com.zzzy.framework.common.enums.common.TemplateStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Schema(description = "合同文件模板列表查询")
@Data
public class ConFileTemplatePageReq extends PageParam {

    @Schema(description = "文件模板名称")
    @Length(max = 100, message = "文件模板名称不能超过100个字符")
    private String name;

    @Schema(description = "创建人姓名")
    @Length(max = 30, message = "文件模板名称不能超过100个字符")
    private String userName;

    @Schema(description = "状态：新建、启用、停用")
    @RangeValuesCheck(enumValueRange = TemplateStatusEnum.class, allowBlank = true, message = "文件模板状态填写错误")
    private String status;
}
